package org.example.diet_compass.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.diet_compass.domain.Comments;
import org.example.diet_compass.dto.CommentsListDto;

import java.util.List;

/**
* @author 86135
* @description 针对表【comments(评论表)】的数据库操作Service
* @createDate 2025-03-02 17:14:01
*/
public interface CommentsService extends IService<Comments> {

    void likeComment(long comment_id);

    List<Comments> getCommentsByUserId(int userId);

    List<CommentsListDto> getGoodsComments(String goodsId);

    Integer getGoodCommentTotal(String goodId);

    void removeByCommentId(Integer commentId);

    void updateLikeNums(Long commentId,int Num);
}
